Skip to content

Avoid non-public promote_op in OptimizationBase#1249

Draft
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-optimizationbase-promote-op-public-access
Draft

Avoid non-public promote_op in OptimizationBase#1249
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-optimizationbase-promote-op-public-access

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

This PR should be ignored until reviewed by @ChrisRackauckas.

Summary

  • replace the Base.promote_op dependency in OptimizationDIExt.jl with a local public-API eltype helper
  • keep the p-accepting constraint Jacobian output buffer usable for dual and numeric parameter eltypes

Root cause

OptimizationBase QA on master failed ExplicitImports because Base.promote_op is not public API.

Validation

  • OPTIMIZATION_TEST_GROUP=QA /home/crackauc/.juliaup/bin/julia +1.12 --project=lib/OptimizationBase -e 'import Pkg; Pkg.test(; julia_args=["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version=false, allow_reresolve=false)'\n - observed: Quality Assurance | 17 1 18, Testing OptimizationBase tests passed\n- OPTIMIZATION_TEST_GROUP=Core /home/crackauc/.juliaup/bin/julia +1.12 --project=lib/OptimizationBase -e 'import Pkg; Pkg.test(; julia_args=["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], force_latest_compatible_version=false, allow_reresolve=false)'\n - observed in the original worktree with the same file diff: Core | 777 777, Testing OptimizationBase tests passed\n- timeout 3600 /home/crackauc/.juliaup/bin/julia +1.12 --startup-file=no -e 'import Pkg; Pkg.activate(; temp=true); Pkg.add("Runic"); using Runic; exit(Runic.main(["--check", "."]))'\n- git diff --check

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants